﻿@using System
@inherits RazorSharpEmail.EmailTemplate<Exceptionless.Core.Mail.Models.OrganizationNotificationModel>
@{ Layout = "_Layout.html.cshtml"; }

<!-- BODY -->
<table class="body-wrap" style="margin: 0; padding: 0; font-family: 'Open Sans', arial, sans-serif; width: 100%;">
    <tr style="margin: 0; padding: 0; font-family: 'Open Sans', arial, sans-serif;">
        <td style="margin: 0; padding: 0; font-family: 'Open Sans', arial, sans-serif;"></td>
        <td class="container" bgcolor="#F7F7F7" style="margin: 0 auto; padding: 0; font-family: 'Open Sans', arial, sans-serif; display: block; max-width: 600px; clear: both;">

            <div class="content" style="margin: 0 auto; padding: 15px; font-family: 'Open Sans', arial, sans-serif; max-width: 600px; display: block;">
                <table style="margin: 0; padding: 0; font-family: 'Open Sans', arial, sans-serif; width: 100%;">
                    <tr style="margin: 0; padding: 0; font-family: 'Open Sans', arial, sans-serif;">
                        <td style="margin: 0; padding: 0; font-family: 'Open Sans', arial, sans-serif;">
                            <p class="lead" style="margin: 0; padding: 0; font-family: 'Open Sans', arial, sans-serif; margin-bottom: 10px; font-weight: normal; font-size: 17px; line-height: 1.6;">
                                @if (Model.IsOverMonthlyLimit) {
                                    <text>
                                        @Model.Organization.Name has reached its monthly plan limit.
                                    </text>
                                } else if (Model.IsOverHourlyLimit) {
                                    <text>
                                        Events are currently being throttled for @Model.Organization.Name to prevent using up your plan limit in a small window of time.
                                    </text>
                                }
                            </p>
                            
                            <!-- Button -->
                            <p class="center" style="margin: 10px auto 0 auto; padding: 0; font-family: 'Open Sans', arial, sans-serif; margin-bottom: 10px; font-weight: normal; font-size: 14px; line-height: 1.6; text-align: center;">
                                <a class="btn" href="@Model.BaseUrl/organization/@Model.Organization.Id/frequent" rel="notrack" target="_blank" style="margin: 10px auto 24px;padding: 10px 15px;min-width:200px;font-family: 'Open Sans', arial, sans-serif;color: #FFF;text-decoration: none;background-color: #6b991c;font-weight: bold;margin-right: 10px;text-align: center;cursor: pointer;display: inline-block;border-radius: 3px;">View most frequent events</a>
                            </p>

                            <div class="other" style="margin: 0; padding: 0; font-family: 'Open Sans', arial, sans-serif;">
                                <h5 style="margin: 0; padding: 0; font-family: 'Open Sans', arial, sans-serif; line-height: 1.1; margin-bottom: 5px; color: #939393; font-weight: 900; font-size: 17px;">Other Actions</h5>
                                <ul style="margin: 0; padding: 0; font-family: 'Open Sans', arial, sans-serif; margin-bottom: 20px; font-weight: normal; font-size: 14px; line-height: 1.6;">
                                    <li style="margin: 0; padding: 0; font-family: 'Open Sans', arial, sans-serif; margin-left: 5px; list-style-position: inside;"><a href="@Model.BaseUrl/organization/@Model.Organization.Id/manage" rel="notrack" target="_blank" style="margin: 0;padding: 0;font-family: 'Open Sans', arial, sans-serif;color: #578F01;">View usage</a></li>
                                    <li style="margin: 0; padding: 0; font-family: 'Open Sans', arial, sans-serif; margin-left: 5px; list-style-position: inside;"><a href="@Model.BaseUrl/account/manage?tab=notifications" rel="notrack" target="_blank" style="margin: 0;padding: 0;font-family: 'Open Sans', arial, sans-serif;color: #578F01;">Change your notification settings</a></li>
                                </ul>
                            </div>

                        </td>
                    </tr>
                </table>
            </div>
            <!-- /content -->

        </td>
        <td style="margin: 0; padding: 0; font-family: 'Open Sans', arial, sans-serif;"></td>
    </tr>
</table>
<!-- /BODY -->
